package day240515.work;

public class DogAgeComparator implements MyComparator<Dog> {
    @Override
    public int compare(Dog o1, Dog o2) {
        return Integer.compare(o1.age, o2.age);
    }
}
